package com.ysy.logistics.service.system.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ysy.logistics.entities.system.SysRole;
import com.ysy.logistics.mapper.system.SysRoleMapper;
import com.ysy.logistics.service.system.SysRoleService;
import com.ysy.logistics.util.PageInfo;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/13 9:49
 **/
@Slf4j
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Resource
    SysRoleMapper sysRoleMapper;
    @Override
    public Page<SysRole> listByPage(PageInfo<SysRole> pageInfo) {
        return sysRoleMapper.selectByPage(pageInfo.getPage(), pageInfo.getCriteria());
    }
}
